
<?php
if(isset($_POST["ajoutpost"])){

error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', true);

include_once ('connect.php');
include_once ("tinymce.html");
//$contenu = htmlspecialchars(addslashes($_POST["contenu"]));

$contenu = addslashes($_POST["contenu"]);
$query="insert into AP3_SP_post (id_pere,titre,contenu,pseudo,id_rubrique) values ('0' , '".$_POST["titre"]."' ,'".$contenu."' , '".$_GET["id_user"]."', '".$_GET["id"]."')";
mysql_query($query);

header('Location: index.php');
}
?>